package com.pap.product.publish.auto.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.pap.base.mapper.PapBaseMapper;
import com.pap.product.publish.auto.entity.ProductPublishDetailCar;;

public interface ProductPublishDetailCarMapper extends PapBaseMapper<ProductPublishDetailCar> {
	int deleteByPrimaryKey(String id);

	int selectCountByMap(Map<Object, Object> map);

	List<ProductPublishDetailCar> selectListByMap(Map<Object, Object> map);

	ProductPublishDetailCar selectByPrimaryKeyAndTableName(@Param("id") String id,
			@Param("dynamicTableName") String dynamicTableName);

	int deleteByPrimaryKeyAndTableName(@Param("id") String id, @Param("dynamicTableName") String dynamicTableName);

	int insert(ProductPublishDetailCar record);

	int insertSelective(ProductPublishDetailCar record);

	ProductPublishDetailCar selectByPrimaryKey(String id);

	int updateByPrimaryKeySelective(ProductPublishDetailCar record);

	int updateByPrimaryKey(ProductPublishDetailCar record);
	
	// alexgaoyh
	int deleteByProductId(@Param("productId") String productId);
	
	int deleteByPublishId(@Param("publishId") String publishId);
}